package cn.stylefeng.guns.modular.hx.storage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

import static javax.print.attribute.standard.MediaPrintableArea.MM;

/**
 * <p>
 * 错漏拣
 * </p>
 *
 * @author lww
 * @since 2023-11-04
 */
@Data
@TableName("hx_error_pick")
public class HxErrorPick implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 捡货单编号
     */
    @TableField("storage_number")
    private String storageNumber;

    /**
     * 应捡商品库位id
     */
    @TableField("position_id")
    private Long positionId;


    /**
     * 应捡商品库位编号
     */
    @TableField("position_number")
    private String positionNumber;

    /**
     * 应捡商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 应捡商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;

    /**
     * 应捡商品名称
     */
    @TableField("goods_name")
    private String goodsName;
    /**
     * 实捡商品库位id
     */
    @TableField("real_position_id")
    private Long realPositionId;

    public Long getPositionId() {
        return positionId;
    }


    /**
     * 实捡商品库位编号
     */
    @TableField("real_position_number")
    private String realPositionNumber;

    /**
     * 实捡商品id
     */
    @TableField("real_goods_id")
    private Long realGoodsId;

    /**
     * 实捡商品编号
     */
    @TableField("real_goods_number")
    private String realGoodsNumber;


    /**
     * 实捡商品名称
     */
    @TableField("real_goods_name")
    private String realGoodsName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 备货口
     */
    @TableField("stock_port")
    private String stockPort;

    /**
     * 收货客户
     */
    @TableField("get_unit")
    private String getUnit;

    /**
     * 拣货人
     */
    @TableField("storage_user_name")
    private String storageUserName;

    /**
     * 拣货人
     */
    @TableField("storage_user")
    private String storageUser;

    /**
     * 应捡数量  
     */
    @TableField("real_num")
    private String realNum;

    /**
     * 实捡数量
     */
    @TableField("r_num")
    private String rNum;



    /**
     * 错漏捡类型
     */
    @TableField("error_pick")
    private String errorPick;

    /**
     * 处理状态
     */
    @TableField("status")
    private String status;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    @Override
    public String toString() {
        return "HxErrorPick{" +
        "id=" + id +
        ", storageNumber=" + storageNumber +
         ", positionId=" + positionId +
        ", positionNumber=" + positionNumber +
        ", goodsId=" + goodsId +
        ", GoodsNumber=" + goodsNumber +
        ", goodsName=" + goodsName +
         ", realPositionId=" + realPositionId +
        ", realPositionNumber=" + realPositionNumber +
        ", realGoodsId=" + realGoodsId +
        ", realGoodsNumber=" + realGoodsNumber +
        ", realGoodsName=" + realGoodsName +
        ", createTime=" + createTime +
        ", stockPort=" + stockPort +
        ", getUnit=" + getUnit +
        ", storageUser=" + storageUser +
        ", storageUserName=" + storageUserName +
        ", realNum=" + realNum +
        ", rNum=" + rNum +
        ", errorPick=" + errorPick +
        ", status=" + status +
        ", deptId=" + deptId +
        ", deliverId=" + deliverId +
        "}";
    }
}
